#include<stdio.h> 
int main()
{int i,j,a[5]={22,45,17,25,18},b[7]={17,13,45,25,22,18,25};
   for(i=0;i<5;i++)
    for(j=0;j<7;j++)
       if(a[i]==b[j])printf("%d,",a[i]);
       printf("\n");



}
